//
// Created by wze-zero on 2024/9/8 008.
//
#include <iostream>

using namespace std;

int main() {
    int num;
    while (cin >> num) {
        if (num > 0) {
            cout << 1 << endl;
        } else if (num < 0) {
            cout << 0 << endl;
        } else {
            cout << 0.5 << endl;
        }
    }
    return 0;
}